package com.heima.search.repository;

import com.heima.search.entity.ApAssociateWords;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @Author 请不要叫我高司令
 * @Date 2022/4/28 2:11
 * @Version 1.0
 */


public interface ApAssociateWordsRepository extends MongoRepository<ApAssociateWords, String> {

    //声明式编程
    public List<ApAssociateWords> findTop5ByAssociateWordsContainsOrderByCreatedTimeDesc(String word);

}
